package com.le.tester.dao;

import com.le.tester.dto.CommonDto;
import com.le.tester.entity.OgPost;
import com.le.tester.entity.OgPostExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface OgPostMapper {
    long countByExample(OgPostExample example);

    int deleteByExample(OgPostExample example);

    int deleteByPrimaryKey(Long id);

    int insert(OgPost record);

    int insertSelective(OgPost record);

    List<OgPost> selectByExampleWithBLOBs(OgPostExample example);

    List<OgPost> selectByExample(OgPostExample example);

    OgPost selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") OgPost record, @Param("example") OgPostExample example);

    int updateByExampleWithBLOBs(@Param("record") OgPost record, @Param("example") OgPostExample example);

    int updateByExample(@Param("record") OgPost record, @Param("example") OgPostExample example);

    int updateByPrimaryKeySelective(OgPost record);

    int updateByPrimaryKeyWithBLOBs(OgPost record);

    int updateByPrimaryKey(OgPost record);

    List<OgPost> selectOgPostAll(@Param("commonDto") CommonDto commonDto);

    //获取数量
    Long selectOgPostAllCount();
}